//
//  chongZhiYiXianCell.m
//  jiaKaoZhuShou
//
//  Created by 金艺社 on 2018/5/23.
//  Copyright © 2018年 金艺社. All rights reserved.
//

#import "chongZhiYiXianCell.h"

@implementation chongZhiYiXianCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setModel:(chongZhiTiXianModel *)model {
    _model = model;
    self.name_lab.text = _model.name;
    self.money_lab.text = _model.money;
    self.status_lab.text = _model.statusShow;
    self.time_lab.text = [NSString ConvertStrToTime:_model.createDate];
    self.order_lab.text = _model.tradeNo;
    // text color
    if ([_model.statusShow isEqualToString:@"提现成功"] || [_model.statusShow isEqualToString:@"成功"]) {
        self.status_lab.textColor = [UIColor gk_colorWithHexString:@"#6AB46C"];
    }else if ([_model.statusShow isEqualToString:@"提现失败"] || [_model.statusShow isEqualToString:@"失败"]){
        self.status_lab.textColor = [UIColor gk_colorWithHexString:@"#A91E23"];
    }else if ([_model.statusShow isEqualToString:@"处理中"]){
        self.status_lab.textColor = [UIColor gk_colorWithHexString:@"#E69D24"];
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
